package com.saile.service;

import com.saile.domain.News;
import com.saile.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2018-4-24.
 */
public interface NewsService {

    void modifyNews(News news) throws MyRunTimeExcption;
    void deleteNews(Long newsId) throws MyRunTimeExcption;

    List<News> getNewsRecommendList(Map<String, String> map) throws MyRunTimeExcption;

    List<News> getNewsList(Map<String, String> map) throws MyRunTimeExcption;

    News getNews(Map<String, String> map) throws MyRunTimeExcption;
}
